import { Column, PrimaryGeneratedColumn } from "typeorm";
import { EntityModel } from "@midwayjs/orm";

@EntityModel("donate", { schema: "heart_neighbor" })
export class Donate {
  @PrimaryGeneratedColumn({ type: "int", name: "id", comment: "Primary Key" })
  id!: number;

  @Column("datetime", {
    name: "create_time",
    nullable: true,
    comment: "Create Time",
    default: () => "CURRENT_TIMESTAMP",
  })
  createTime!: Date | null;

  @Column("int", { name: "user_id", comment: "帮扶捐赠用户id" })
  userId!: number;

  @Column("int", { name: "item_id", comment: "具体事项id" })
  itemId!: number;
}
